import config from '@/config'
import request from '@/utils/request'
//直播间列表
export function getRoomListMz(params: any) {
    return request.get({ url: '/admin.auth.room/roomListMz', params })
}

//直播间详情
export function detailRoomMz(params: any) {
    return request.get({ url: '/admin.auth.room/detailRoomMz', params })
}


//编辑直播信息
export function editRoomMz(params?: any) {
    return request.post({ url: '/admin.auth.room/editRoomMz', params })
}


//添加直播间
export function addRoomMz(params?: any) {
    return request.post({ url: '/admin.auth.room/addRoomMz', params })
}


//删除直播间
export function delRoomMz(params: any) {
    return request.get({ url: '/admin.auth.room/delRoomMz', params })
}

//设置直播间对应奖励
export function addRewardRoomMz(params: any) {
    return request.get({ url: '/admin.auth.room/addRewardRoomMz', params })
}

//直播间奖励信息
export function detailRewardRoomMz(params: any) {
    return request.get({ url: '/admin.auth.room/detailRewardRoomMz', params })
}

//频道列表
export function getChannelListMz(params: any) {
    return request.post({ url: '/admin.auth.room/channelListMz', params })
}


//同步频道信息
export function synChannel(params?: any) {
    return request.post({ url: '/admin.auth.room/synChannel', params })
}


//编辑频道
export function editChannel(params?: any) {
    return request.post({ url: '/admin.auth.room/editChannel', params })
}


//添加频道
export function addChannel(params?: any) {
    return request.post({ url: '/admin.auth.room/addChannel', params })
}


//删除频道
export function delChannel(params?: any) {
    return request.post({ url: '/admin.auth.room/delChannel', params })
}


//频道详情
export function detailChannel(params?: any) {
    return request.post({ url: '/admin.auth.room/detailChannel', params })
}

// 商品库列表
export function goodsMzList(params?: any) {
    return request.post({ url: '/admin.auth.room/goodsMzList', params })
}
// 删除商品库商品
export function decGoodsMz(params?: any) {
    return request.post({ url: '/admin.auth.room/decGoodsMz', params })
}
// 添加商品到商品库
export function addGoodsMz(params?: any) {
    return request.post({ url: '/admin.auth.room/addGoodsMz', params })
}
// 编辑商品库商品
export function editGoodsMz(params?: any) {
    return request.post({ url: '/admin.auth.room/editGoodsMz', params })
}
// 直播间对应商品列表
export function roomMzGoodsList(params?: any) {
    return request.post({ url: '/admin.auth.room/roomMzGoodsList', params })
}
// 商品关联直播间
export function roomMzGoodsChoice(params?: any) {
    return request.post({ url: '/admin.auth.room/roomMzGoodsChoice', params })
}
// 商品取消关联直播间
export function roomMzGoodsNotChoice(params?: any) {
    return request.post({ url: '/admin.auth.room/roomMzGoodsNotChoice', params })
}
// 商品库详情
export function detailGoodsMz(params?: any) {
    return request.post({ url: '/admin.auth.room/detailGoodsMz', params })
}

// 点名签到列表
export function rollCallRewardRoomMzList(params: any) {
    return request.post({ url: '/admin.auth.room/rollCallRewardRoomMzList', params })
}
// 添加点名设置
export function addRollCallRewardRoomMz(params: any) {
    return request.post({ url: '/admin.auth.room/addRollCallRewardRoomMz', params })
}

// 删除点名设置
export function decRollCallRewardRoomMz(params: any) {
    return request.post({ url: '/admin.auth.room/decRollCallRewardRoomMz', params })
}
// 点名设置详情
export function detailRollCallRewardRoomMz(params: any) {
    return request.post({ url: '/admin.auth.room/detailRollCallRewardRoomMz', params })
}
// 编辑点名设置
export function editRollCallRewardRoomMz(params: any) {
    return request.post({ url: '/admin.auth.room/editRollCallRewardRoomMz', params })
}

// 视频库链接
export function seedVideo(params: any) {
    return request.post({ url: '/admin.auth.room/seedVideo', params })
}

// 获取视频库列表选项
export function getVideoList(params: any) {
    return request.post({ url: '/admin.auth.room/getVideoList', params })
}



// 获取上传视频临时Token
export function MzGetUploadToken(params: any) {
    return request.get({ url: '/admin.auth.mz_video/getUploadToken', params })
}


// 提交上传后待转码视频
export function MzCreateUploadVideo(params: any) {
    return request.post({ url: '/admin.auth.mz_video/createUploadVideo', params })
}


// 获取已上传的视频列表 注：转码成功后的
export function MzGetVideoList(params: any) {
    return request.get({ url: '/admin.auth.mz_video/getVideoList', params })
}

